
#include "Player.h"

namespace first
{
    Vector3::Vector3(const Vector3 &v)
    {
        this->x = v.x;
        this->y = v.y;
        this->z = v.z;
    }

    Vector3 &Vector3::operator=(const Vector3 &v)
    {
        this->x = v.x;
        this->y = v.y;
        this->z = v.z;
        return *this;
    }





    void Player::setLife(unsigned newLife)
    {
        if( newLife<MAX_LIFE )
            life = newLife;
    }
    void Player::setArmor(unsigned newArmor)
    {
        if( newArmor<MAX_ARMOR )
            armor = newArmor;
    }



}
